#include "delay.h"
#include "sys.h"
#include "FreeRTOS.h"
#include "timers.h"
#include "includes.h"


#ifndef _DELAY_H_
#define _DELAY_H_


void delay_us(u32 nus)
{	u32 i=1000;
	u16 j=0;
  for(j=0;j<nus;j++)
	{
	  while(i>0)
			i--;
	}
		
}


void delay_ms(u16 nms)
{	 	 
  vTaskDelay(nms/portTICK_RATE_MS);
} 


#endif
			 



































